package com.vitabuybuy.tv.dto;

import com.stx.xhb.androidx.entity.SimpleBannerInfo;

import java.util.List;

/**
 * 作者：SimGa
 * 日期：2020/11/29
 * 时间：11:52
 * 包名：com.vitabuybuy.tv.dto
 */
public class BannerDto {

    /**
     * name : 食品优惠券
     * discount : 1.0
     * id : 30
     * precondition : 0.0
     */

    private List<CouponListBean> couponList;
    /**
     * id : 431
     * productList : [{"thumbnail":"http://106.55.47.138/attachment/jpg/5526/1139_13758.jpg","salePrice":149,"id":79},{"thumbnail":"http://106.55.47.138/attachment/jpg/5452/1132_5326.jpg","salePrice":199,"id":67}]
     */

    private List<LiveListBean> liveList;
    /**
     * product : {"thumbnail":"http://106.55.47.138/attachment/png/7514/1529_30686.png","promotionPrice":100,"salePrice":100,"id":86}
     * id : 4
     * startingPrice : 10.0
     */

    private List<BiddingListBean> biddingList;
    /**
     * product : {"thumbnail":"http://106.55.47.138/attachment/jpg/1359/759_13779.jpg","promotionPrice":99,"salePrice":100,"id":61}
     * id : 25
     */

    private List<GroupBuyingListBean> groupBuyingList;
    /**
     * id : 46
     * enabled : true
     * title : 1.7ceshi
     * image : http://106.55.47.138/attachment/jpg/856/1697_2566.jpg
     * position : 1
     * location : 首页banner图
     * effectiveTime : 2021-01-01 00:00:00
     * expirationTime : 2021-01-31 00:00:00
     * type : 外部链接
     * link : 123456
     */

    private List<SlideListBean> slideList;

    private List<ProductListBean> productList;

    public List<ProductListBean> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductListBean> productList) {
        this.productList = productList;
    }

    public static class ProductListBean {
        private String thumbnail;
        private double salePrice;
        private int id;

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public double getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(double salePrice) {
            this.salePrice = salePrice;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }


    public List<CouponListBean> getCouponList() {
        return couponList;
    }

    public void setCouponList(List<CouponListBean> couponList) {
        this.couponList = couponList;
    }

    public List<LiveListBean> getLiveList() {
        return liveList;
    }

    public void setLiveList(List<LiveListBean> liveList) {
        this.liveList = liveList;
    }

    public List<BiddingListBean> getBiddingList() {
        return biddingList;
    }

    public void setBiddingList(List<BiddingListBean> biddingList) {
        this.biddingList = biddingList;
    }

    public List<GroupBuyingListBean> getGroupBuyingList() {
        return groupBuyingList;
    }

    public void setGroupBuyingList(List<GroupBuyingListBean> groupBuyingList) {
        this.groupBuyingList = groupBuyingList;
    }

    public List<SlideListBean> getSlideList() {
        return slideList;
    }

    public void setSlideList(List<SlideListBean> slideList) {
        this.slideList = slideList;
    }

    public static class CouponListBean {
        private String name;
        private double discount;
        private int id;
        private int precondition;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public double getDiscount() {
            return discount;
        }

        public void setDiscount(double discount) {
            this.discount = discount;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getPrecondition() {
            return precondition;
        }

        public void setPrecondition(int precondition) {
            this.precondition = precondition;
        }
    }

    public static class LiveListBean {
        private int id;
        private String image;
        /**
         * thumbnail : http://106.55.47.138/attachment/jpg/5526/1139_13758.jpg
         * salePrice : 149.0
         * id : 79
         */

        private List<ProductListBean> productList;

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public List<ProductListBean> getProductList() {
            return productList;
        }

        public void setProductList(List<ProductListBean> productList) {
            this.productList = productList;
        }

        public static class ProductListBean {
            private String thumbnail;
            private double salePrice;
            private int id;

            public String getThumbnail() {
                return thumbnail;
            }

            public void setThumbnail(String thumbnail) {
                this.thumbnail = thumbnail;
            }

            public double getSalePrice() {
                return salePrice;
            }

            public void setSalePrice(double salePrice) {
                this.salePrice = salePrice;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }
    }

    public static class BiddingListBean {
        /**
         * thumbnail : http://106.55.47.138/attachment/png/7514/1529_30686.png
         * promotionPrice : 100.0
         * salePrice : 100.0
         * id : 86
         */

        private ProductBean product;
        private int id;
        private double startingPrice;

        public ProductBean getProduct() {
            return product;
        }

        public void setProduct(ProductBean product) {
            this.product = product;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public double getStartingPrice() {
            return startingPrice;
        }

        public void setStartingPrice(double startingPrice) {
            this.startingPrice = startingPrice;
        }

        public static class ProductBean {
            private String thumbnail;
            private double promotionPrice;
            private double salePrice;
            private int id;

            public String getThumbnail() {
                return thumbnail;
            }

            public void setThumbnail(String thumbnail) {
                this.thumbnail = thumbnail;
            }

            public double getPromotionPrice() {
                return promotionPrice;
            }

            public void setPromotionPrice(double promotionPrice) {
                this.promotionPrice = promotionPrice;
            }

            public double getSalePrice() {
                return salePrice;
            }

            public void setSalePrice(double salePrice) {
                this.salePrice = salePrice;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }
    }

    public static class GroupBuyingListBean {
        /**
         * thumbnail : http://106.55.47.138/attachment/jpg/1359/759_13779.jpg
         * promotionPrice : 99.0
         * salePrice : 100.0
         * id : 61
         */

        private ProductBean product;
        private int id;

        public ProductBean getProduct() {
            return product;
        }

        public void setProduct(ProductBean product) {
            this.product = product;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public static class ProductBean {
            private String thumbnail;
            private double promotionPrice;
            private double salePrice;
            private int id;

            public String getThumbnail() {
                return thumbnail;
            }

            public void setThumbnail(String thumbnail) {
                this.thumbnail = thumbnail;
            }

            public double getPromotionPrice() {
                return promotionPrice;
            }

            public void setPromotionPrice(double promotionPrice) {
                this.promotionPrice = promotionPrice;
            }

            public double getSalePrice() {
                return salePrice;
            }

            public void setSalePrice(double salePrice) {
                this.salePrice = salePrice;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }
    }

    public static class SlideListBean extends SimpleBannerInfo{
        private int id;
        private boolean enabled;
        private String title;
        private String image;
        private int position;
        private String location;
        private String effectiveTime;
        private String expirationTime;
        private String type;
        private String link;
        private String thumbnail;

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public boolean isEnabled() {
            return enabled;
        }

        public void setEnabled(boolean enabled) {
            this.enabled = enabled;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public int getPosition() {
            return position;
        }

        public void setPosition(int position) {
            this.position = position;
        }

        public String getLocation() {
            return location;
        }

        public void setLocation(String location) {
            this.location = location;
        }

        public String getEffectiveTime() {
            return effectiveTime;
        }

        public void setEffectiveTime(String effectiveTime) {
            this.effectiveTime = effectiveTime;
        }

        public String getExpirationTime() {
            return expirationTime;
        }

        public void setExpirationTime(String expirationTime) {
            this.expirationTime = expirationTime;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        @Override
        public Object getXBannerUrl() {
            return image;
        }
    }
}
